<%--
  Created by IntelliJ IDEA.
  User: folie
  Date: 2016/12/24
  Time: 22:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!-- JS 文件引入 -->
<script src="${domain}/js/model/jquery-1.11.3.min.js"></script>
<script src="${domain}/js/jquery.form.js"></script>
<script src="${domain}/js/bootstrap3/bootstrap.min.js"></script>
<script src="${domain}/js/app.js"></script>
<script src="${domain}/js/toastr.min.js"></script>
<link rel="stylesheet" href="${domain}/js/colorbox/colorbox.css" />
<script src="${domain}/js/colorbox/jquery.colorbox-min.js"></script>
<!--[if lte IE 6]>
<script type="text/javascript" src="${domain}/js/bootstrap3/bootstrap-ie.js"></script>
<![endif]-->
<script type="text/javascript">
    $(function () {
        toastr.options = {
            "closeButton": true,
            "debug": false,
            "newestOnTop": true,
            "progressBar": false,
            "positionClass": "toast-bottom-center",
            "preventDuplicates": false,
            "onclick": null,
            "showDuration": "300",
            "hideDuration": "1000",
            "timeOut": "5000",
            "extendedTimeOut": "1000",
            "showEasing": "swing",
            "hideEasing": "linear",
            "showMethod": "fadeIn",
            "hideMethod": "fadeOut"
        }
        <c:if test="${!empty toast_message}">
        toastr["${message_type}"]("${toast_message}");
        <%
        session.removeAttribute("message_type");
        session.removeAttribute("toast_message");
        %>
        </c:if>
    });
</script>